<ion-view class="firstConfirm-view" view-title="首件确认">
    <ion-header-bar class="bar-subheader">
        <im-card-header card-title="单品信息"></im-card-header>
        <div class="im-flow-container">
            <im-master-item class="im-flow-item" master-name="单号" master-value="{{data.MO.Code}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="型号" master-value="{{data.BarcodeMaster.ItemMaster.Specification}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="作业" master-value="{{data.Work.Name}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="料号" master-value="{{data.BarcodeMaster.ItemMaster.Code}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="批次" master-value="{{data.MO.LotNumber}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="名称" master-value="{{data.BarcodeMaster.ItemMaster.Name}}">
            </im-master-item>
        </div>
        <im-card-header card-title="检验指标"></im-card-header>
        <div class="row row-table-header">
            <div class="col col-40">
                校验指标
            </div>
            <div class="col col-30">
                指标标准
            </div>
            <div class="col col-30">
                现场确认
            </div>
        </div>
    </ion-header-bar>
    <ion-content class="firstConfirm-content">
        <div class="im-flow-container">
            <div class="row-table-body">
                <div class="row align row-no-padding" ng-repeat="QC in data.QCRecords">
                    <div class="col col-40">
                        {{QC.QCNorm.Name}}
                    </div>
                    <div class="col col-30">
                        <p>{{QC.QCStandard.StandardValue}}</p>
                        <p ng-if="QC.QCStandard.ValueUpperLimit">上限：{{QC.QCStandard.ValueUpperLimit}}</p>
                        <p ng-if="QC.QCStandard.ValueLowerLimit">下限：{{QC.QCStandard.ValueUpperLimit}}</p>
                    </div>
                    <div class="col col-30">
                        <ion-toggle ng-if="QC.QCNorm.Type==2" ng-model="QC.NormValue" toggle-class="toggle-positive" ng-disabled="data.isCheck"></ion-toggle>
                        <label class="item item-input" ng-if="QC.QCNorm.Type==0||QC.QCNorm.Type==1">
                            <input type="text" ng-model="QC.NormValue" ng-disabled="data.isCheck"/>
                        </label>
                        <label class="item item-input item-select" ng-if="QC.QCNorm.Type==3">
                            <div class="input-label">
                                {{QC.select}}
                            </div>
                            <select ng-model="QC.select" ng-options="extend.id as extend.name for extend in QC.ExtendEnum" ng-disabled="data.v"></select>
                        </label>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
    <ion-footer-bar class="firstConfirm-footer">
        <div class="remark">备注</div>
        <textarea ng-model="data.BizRecord.Remark" placeholder="您还可以输入120字符" style="width: 400px;" ng-disabled="data.isCheck"></textarea>
        <im-pull-right>
            <button class="button button-accept" ng-click="submit()" ng-disabled="data.isCheck">确认</button>
        </im-pull-right>
    </ion-footer-bar>
</ion-view>
